<?php

namespace app\m\controller;

use app\common\controller\Frontend;
use think\Controller;
use think\Session;
use think\Request;
use think\Db;
use think\Cache;
use fast\lucn\Lucn;

//use think\Db;

/**
 * 首页
 *
 * @icon fa fa-circle-o
 */
class test extends Controller
{
    protected $model = null;

    public function _initialize()
    {
		define('SIGN', 'index');//定义标识
		$this->assign('controller_sign',SIGN);
		$this->assign('controller_page','首页');
        parent::_initialize();
    }
	
	public function session()
    {
		dump(session('ua')); 
		dump(Cache::get('cache'));
    }
	
	public function clearsession()
    {
		Session::clear();
		dump(session('ua'));
		Cache::rm('cache'); 
		dump(Cache::get('cache'));
    }
	
	public function clear()
    {
		Cache::rm('cache');
		dump(Cache::get('cache')); 
    }

}
